<%--
  Created by IntelliJ IDEA.
  User: 86131
  Date: 2023/8/16
  Time: 15:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>放映厅</title>
    <script rel="script" src="${path}/js/jquery-3.6.4.js"></script>
    <link rel="stylesheet" type="text/css" href="${path}/css/mpcontent.css">
</head>
<body>
<%@include file="header.jsp"%>
<c:set var="cinema" value="${sessionScope.cinema}"/>
    <div id="bigbox">
        <div id="dao">
            <div class="tu">
                <img src="${path}/images/cinemaPicture/${cinema.cinema_img}" id="ntu">
            </div>
            <div id="nei">
                <ul id="${cinema.cinema_id}">
                    <li id="zi">${cinema.cinema_name}</li>
                    <li class="name">${cinema.cinema_address}</li>
                    <li class="name">电话：${cinema.cinema_phone}</li>
                    <li id="yi">影院服务<hr></li>
                    <li class="rong"><input class="in" type="text" value="退"> 未取票用户放映前60分钟可退票</li>
                    <li class="rong"><input class="in" type="text" value="改签"> 未取票用户放映前60分钟可改签</li>
                    <li class="rong"><input id="input" type="text" value="3D眼镜自费购买"> 成人框架3元/副</li>
                    <li class="rong"><input class="in" type="text" value="儿童优惠"> 1.3m以下儿童家长陪同免票，无座</li>
                    <li class="rong"><input class="in" type="text" value="可停车"> 凭电影票领取停车券在影院楼下负二楼停车场免3小时停车费</li>
                </ul>
            </div>
        </div>
        <div id="haibao">
            <p id="da">猫眼电影 > 电影 > ${cinema.cinema_name}</p>
            <ul id="tupi">
                <li><img class="yt" src="${path}/images/moviePicture/chaojifeixia.png"></li>
                <li><img class="yt" src="${path}/images/moviePicture/chaa.jpg"></li>
                <li><img class="yt" src="${path}/images/moviePicture/changan.jpg"></li>
                <li><img class="yt" src="${path}/images/moviePicture/chaonyijiaren.jpg"></li>
                <li><img class="yt" src="${path}/images/moviePicture/bajiao.jpg"></li>
                <li><img class="yt" src="${path}/images/moviePicture/baibianmading.jpg"></li>
                <li><img class="yt" src="${path}/images/moviePicture/juchisha.jpg"></li>
            </ul>
        </div>
        <div id="shi">
            <p id="jian">观影时间</p>
            <table>
                <tr>
                    <th>放映时间</th><th>语言版本</th><th>放映厅</th><th>售价（元）</th><th>选座购票</th>
                </tr>
                <c:set var="asList" value="${sessionScope.asList}"/>
                <c:choose>
                    <c:when test="${empty asList}">
                        <script>window.location="${path}/AuditoriumServlet?prom=mp&cinema_id="+${cinema.cinema_id};</script>
                    </c:when>
                    <c:otherwise>
                        <c:forEach items="${asList}" var="as">
                            <tr id="${as.aud_id}" >
                                <td>${as.aud_time}</td>
                                <td>${as.aud_lang}</td>
                                <td>${as.aud_name}</td>
                                <td>${as.aud_money}</td>
                                <td>
                                    <input type="submit" onclick="<c:if test="${sessionScope.user==null}">alert('您还未登录，请先登录');window.location='${path}/login.jsp';</c:if><c:if test="${sessionScope.user!=null}">jQuery:window.location='${path}/AuditoriumServlet?prom=aud&audId=${as.aud_id}'</c:if>" value="选择购票" id="gou">
                                </td>
                            </tr>
                        </c:forEach>
                    </c:otherwise>
                </c:choose>
            </table>
        </div>
    </div>
<%@include file="footer.jsp"%>
</body>
</html>
